<template>
  <!--  <img :src="url?url:" alt="">-->
  <el-image :src="url">
    <div slot="error" class="image-slot">
      <span>图片未上传</span>
    </div>
  </el-image>
</template>

<script>
export default {
  name: 'TableImg',
  props: {
    index: {
      type: Number,
      required: true
    },
    url: {
      type: String,
      required: true
    }
  },
  methods: {
  }
}
</script>

<style scoped>
img{
  width: 100px;
  height: 100px;
}
</style>
